package no.ntnu.fp.su.wellsim.sensors;

import no.ntnu.fp.su.wellsim.Flow;
import no.ntnu.fp.su.wellsim.util.NormalDistribution;

public class PressureSensor implements Sensor {
	private Flow flow;
	private static double samplingError = 10;
	public PressureSensor(Flow flow) {
		this.flow=flow;
	}
	@Override
	public double sample() {
		return NormalDistribution.sample(flow.getPressure(),samplingError); 
	}

}
